<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenMesh: Smoother Tools</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="logo_align.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="rwth_vci_rgb.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenMesh
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a04332.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Smoother Tools </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="OM_Smoother_Overview"></a>
Overview</h1>
<p>The OpenMesh library provides tools for smoothing Triangle- and Polymeshes</p>
<ol type="1">
<li>Smoother:<ol type="a">
<li><a class="el" href="a02853.html" title="Base class for smoothing algorithms. ">OpenMesh::Smoother::SmootherT</a></li>
<li><a class="el" href="a02849.html" title="Laplacian Smoothing. ">OpenMesh::Smoother::LaplaceSmootherT</a></li>
<li><a class="el" href="a02845.html" title="Laplacian Smoothing. ">OpenMesh::Smoother::JacobiLaplaceSmootherT</a></li>
</ol>
</li>
</ol>
<h1><a class="anchor" id="OM_Smoother_Usage"></a>
Usage</h1>
<p>The smoothers directly work on an <a class="el" href="a01233.html" title="Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...">OpenMesh</a>. The following example shows how to use them:</p>
<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="a00647.html">OpenMesh/Tools/Smoother/JacobiLaplaceSmootherT.hh</a>&gt;</span></div><div class="line"></div><div class="line"><span class="comment">// Initialize smoother with input mesh</span></div><div class="line"><a class="code" href="a02845.html">OpenMesh::Smoother::JacobiLaplaceSmootherT&lt;MyMesh&gt;</a> smoother(mesh);</div><div class="line"></div><div class="line">smoother.initialize( Tangential_and_Normal,   <span class="comment">//Smooth direction</span></div><div class="line">                     C0)                      <span class="comment">//Continuity</span></div><div class="line">  </div><div class="line"><span class="comment">// Execute 3 smooth steps</span></div><div class="line">smoother.smooth(3);</div></div><!-- fragment --><h1><a class="anchor" id="Options"></a>
Options</h1>
<h2><a class="anchor" id="Continuity"></a>
Continuity</h2>
<ul>
<li>C0: shape is continuous, but not the tangent </li>
<li>C1: shape and tangent are continuous </li>
<li>C2: preserves curvature</li>
</ul>
<h2><a class="anchor" id="Component"></a>
Component</h2>
<ul>
<li>Tangential: Smooth in tangential direction </li>
<li>Normal: Smooth in normal direction </li>
<li>Tangential_and_Normal: Smooth in tangential and normal direction</li>
</ul>
<h2><a class="anchor" id="localError"></a>
Local Error</h2>
<p>By default, this option is disabled. You can set local max. local errors (absolute or relative) via following functions: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> <a class="code" href="a02853.html#acd0b96d45f71d37584cd91e067397e7b">OpenMesh::Smoother::SmootherT&lt;Mesh&gt;::set_relative_local_error</a>(Scalar _err);</div><div class="line"><span class="keywordtype">void</span> <a class="code" href="a02853.html#aa4afc9ae6b9ce5f3fc1ea7372ce0b42f">OpenMesh::Smoother::SmootherT&lt;Mesh&gt;::set_absolute_local_error</a>(Scalar _err);</div><div class="line"><span class="keywordtype">void</span> <a class="code" href="a02853.html#aac72d74a6daf8c8fb24a0437f022dabb">OpenMesh::Smoother::SmootherT&lt;Mesh&gt;::disable_local_error_check</a>();</div></div><!-- fragment --> </div></div><!-- contents -->
</div><!-- doc-content -->
<hr>
<address>
<small>
<a href="http://www.rwth-graphics.de" style="text-decoration:none;">
</a>
Project <b>OpenMesh</b>, 
&copy;&nbsp; Computer Graphics Group, RWTH Aachen.
Documentation generated using 
<a class="el" href="http://www.doxygen.org/index.html">
<b>doxygen</b>
</a>.
</small>
</address>
</body>
</html>
